package com.yanqu.road.logic.pb;

import com.yanqu.road.entity.player.UserThief;
import com.yanqu.road.pb.thief.ThiefProto;

public class ThiefPb {

    public static ThiefProto.UserThiefMsg.Builder parseUserThiefMsg(UserThief userThief) {
        ThiefProto.UserThiefMsg.Builder builder = ThiefProto.UserThiefMsg.newBuilder();
        builder.setThiefUid(userThief.getThiefUid());
        builder.setType(userThief.getType());
        builder.setCrimePlaceId(userThief.getCrimePlaceId());
        builder.setWorkBeginTime(userThief.getWorkBeginTime());
        builder.setGetReward(userThief.isGetReward());
        return builder;
    }

}
